/*
* Copyright (c) 2016 ShopJsp. All Rights Reserved.
 * ============================================================================
 * 版权所有 2011 - 今 北京华宇盈通科技有限公司，并保留所有权利。
 * ----------------------------------------------------------------------------
 * 提示：在未取得SHOPJSP商业授权之前，您不能将本软件应用于商业用途，否则SHOPJSP将保留追究的权力。
 * ----------------------------------------------------------------------------
 * 官方网站：http://www.shopjsp.com
 * ============================================================================
*/
package com.hyyt.shopjsp.util.common;

import java.io.Serializable;

/**
 * APP接口调用返回结果封装
 *
 * @author admin
 */
public class JsonResult<T> implements Serializable{

    private static final long serialVersionUID = 4464844090255883893L;

    private Integer returnCode=1;//返回状态码1：表示成功，0表示失败
    private String message="操作成功";//结果提示信息
    private T resultData;//结果数据
    private Long time;//时间戳

    public JsonResult(){
        this.time=System.currentTimeMillis();
    }
    public Integer getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(Integer returnCode) {
        this.returnCode = returnCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResultData() {
        return resultData;
    }

    public void setResultData(T resultData) {
        this.resultData = resultData;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

}